#ifndef __APP_LIB_SOCK_PAIR_H__
#define __APP_LIB_SOCK_PAIR_H__

#ifdef __cplusplus
extern "C" {
#endif

#include "Sock/AppLibSock_Base.hpp"

typedef struct _APP_LIB_SOCK_PAIR_s_
{
    APP_LIB_SOCK_s stSock;
    APP_LIB_SOCK_TYPE_e enType;
} APP_LIB_SOCK_PAIR_s;

extern ULONG AppLibSockPair_Send(IN APP_LIB_SOCK_PAIR_s *pstSrv, IN void *data, IN SINT32 len);
extern ULONG AppLibSockPair_Recv(IN APP_LIB_SOCK_PAIR_s *pstSrv, IN void *data, IN SINT32 len);
extern ULONG AppLibSockPair_Creat(IN APP_LIB_SOCKET_TYPE_e enType, INOUT APP_LIB_SOCK_PAIR_s *pstSrv);
extern ULONG ApplibSockPair_SetRole(IN APP_LIB_SOCK_TYPE_e enType, INOUT APP_LIB_SOCK_PAIR_s *pstSrv);

#ifdef __cplusplus
}
#endif

#endif
